package com.rongxue.mapper;

import com.rongxue.pojo.SUserBank;
import com.rongxue.pojo.SUserBankExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SUserBankMapper {
    int countByExample(SUserBankExample example);

    int deleteByExample(SUserBankExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(SUserBank record);

    int insertSelective(SUserBank record);

    List<SUserBank> selectByExample(SUserBankExample example);

    SUserBank selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") SUserBank record, @Param("example") SUserBankExample example);

    int updateByExample(@Param("record") SUserBank record, @Param("example") SUserBankExample example);

    int updateByPrimaryKeySelective(SUserBank record);

    int updateByPrimaryKey(SUserBank record);

    SUserBank selectBankCardByCardNoAndUserId(Long bankCardNo, Long userId);

    SUserBank selectUserBankByUserId(String paramString);

    SUserBank selectUserBankByListUserId(String id);

    List<SUserBank> selectBankCardByCardNo(@Param("bankCardNo") String paramString);

    void updateSelective(SUserBank bank);

    void updateByBankCardAndIDSelective(SUserBank bank);

    SUserBank selectUserBankInfoByUserId(String userId);

    int updateHasPaySuccessByUserId(Long userId);

    void updateByUserId(SUserBank userBank);
    //是否绑卡
    Integer selectUserBankCoutByUserid(Long userId);
}